import request from '@/utils/request'

// 查询仓库区域信息列表
export function listWmsWarehouseArea(query) {
  return request({
    url: '/system/wmsWarehouseArea/list',
    method: 'get',
    params: query
  })
}

// 查询仓库区域信息详细
export function getWmsWarehouseArea(areaId) {
  return request({
    url: '/system/wmsWarehouseArea/' + areaId,
    method: 'get'
  })
}

// 新增仓库区域信息
export function addWmsWarehouseArea(data) {
  return request({
    url: '/system/wmsWarehouseArea',
    method: 'post',
    data: data
  })
}

// 修改仓库区域信息
export function updateWmsWarehouseArea(data) {
  return request({
    url: '/system/wmsWarehouseArea',
    method: 'put',
    data: data
  })
}

// 删除仓库区域信息
export function delWmsWarehouseArea(areaId) {
  return request({
    url: '/system/wmsWarehouseArea/' + areaId,
    method: 'delete'
  })
}

